window.onload=function(){
	let xxx='${schlist}';
	alert(xxx)
let divs=document.getElementsByClassName("kb-click");

for(let i=0;i<divs.length;i++)
{	
	if(xxx[i].state1==1&&xxx[i].state2==1){
		let a=document.createTextNode("有课");
		divs[i].appendChild(a);
		divs[i].style.backgroundColor="#32CD32";
	}
	else if(xxx[i].state1==0){
        divs[i].style.backgroundColor="#00000060";
			let b=document.createTextNode("老师在忙");
		divs[i].appendChild(b);
	}
	else{
		div[i].style.backgroundColor="#FF0000";
		let c=document.createTextNode("无课");
		divs[i].appendChild(c);
	}}
}
